package com.xiaomengkuan.product.service;

import com.xiaomengkuan.common.entity.vo.PageVo;
import com.xiaomengkuan.product.entity.tdo.TDO;
import com.xiaomengkuan.product.entity.vo.ProductResponseVo;

import java.util.Map;

/**
 * @author Faraj Mujey
 * -- Creation Time: 2021-01-27 1:37 下午, File Encoding: utf8 --
 */
public interface LikeAndFavouriteService {
    TDO like(String userId, String productId, int type);

    TDO unlike(String userId, String productId, int type);

    long favouriteCount(String userId);

    PageVo<ProductResponseVo> getFavourites(Map<String, Object> requestBody);
}
